import javax.swing.table.AbstractTableModel;


public class DAPTableModel extends AbstractTableModel {

	private String[] columnNames;
	private Object[][] data;
	
	public DAPTableModel(Object[][] rowData, String[] colHeaders){
		this.columnNames = colHeaders;
		this.data = rowData;
	}
	
	@Override
	public int getColumnCount() {
		return columnNames.length;
	}

	@Override
	public int getRowCount() {
		return data.length;
	}

	@Override
	public Object getValueAt(int rowIndex, int columnIndex) {
		return data[rowIndex][columnIndex];
	}


}
